package com.yyge.controller.front.mapstruct;

import com.yyge.controller.front.merchandiser.req.MerchandiserAddReq;
import com.yyge.controller.front.merchandiser.resp.EnterpriseProcessResp;
import com.yyge.controller.front.merchandiser.resp.FrontMerchandiserResp;
import com.yyge.entity.EnterpriseProcess;
import com.yyge.entity.Merchandiser;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author gityyge
 * @Description
 * @Date 2023/7/12 10:17
 * @Version 1.0
 */
@Mapper
public interface MerchandiserConvert {
    MerchandiserConvert INSTANCE= Mappers.getMapper(MerchandiserConvert.class);

    Merchandiser convert(MerchandiserAddReq req);

    FrontMerchandiserResp convert(Merchandiser entity);

    List<EnterpriseProcessResp> convert(List<EnterpriseProcess> list);
}
